﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Runtime.Serialization;
using Arch.Model;
using System.Collections.ObjectModel;

namespace Arch.Messages
{
    [DataContract]
    public class ValidationMessage
    {
        public ValidationMessage(ValidationResult validationResult, ValidationAttribute validatingAttribute,
                                   object value)
        {
            ValidationResult = validationResult;
            ValidationAttribute = validatingAttribute;
            Value = value;
        }

        public ValidationMessage() { }

        public ValidationAttribute ValidationAttribute { get; set; }

        public ValidationResult ValidationResult { get; set; }

        public object Value { get; set; }
    }
}